package com.zhuiyun.project.api.audio.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuiyun.project.api.audio.entity.Audio;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AudioMapper extends BaseMapper<Audio> {

    List<Audio>listAudio(Audio audio);

    int insertAudio(Audio audio);

    Audio getAudio(Integer audioId);

    int removeAudio(Integer[] audioIds);

    int setStatus(Audio audio);

    int getNumByAudioType(@Param("audioType") Integer audioType);
}
